package com.ty.day3;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create 2023/11/8 17:26
 */
public class Case2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x;
        System.out.println("请输入一个整数：");
        x = sc.nextInt();
        String str =x+ x>0?"是正数":x==0?"是0":"是负数";
        System.out.println(str);
    }
}
